package com.tencent.wxcloudrun.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.tencent.wxcloudrun.dao.EnablechannelsMapper;
import com.tencent.wxcloudrun.dao.NavMapper;
import com.tencent.wxcloudrun.dao.OptionMapper;
import com.tencent.wxcloudrun.dao.UserlikeMapper;
import com.tencent.wxcloudrun.model.*;
import com.tencent.wxcloudrun.service.PostService;
import com.tencent.wxcloudrun.service.UserService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

/**
 * @author lichongbing
 * @version 1.0.0
 * @createdate 2023/2/16 19:37
 * @description: TODO
 */
@RestController
public class PostController {
    @Autowired
    private PostService postService;


    @Autowired
    private OptionMapper optionMapper;


    @Autowired
    private NavMapper navMapper;

    @Autowired
    private UserlikeMapper userlikeMapper;

    @Autowired
    private UserService userService;

    @Autowired
    private EnablechannelsMapper enablechannelsMapper;

    @GetMapping(value = "/post")
    List<Post> getAllPosts(HttpServletRequest request) {
        String sticky = request.getParameter("sticky");
        int per_page = Integer.parseInt(request.getParameter("per_page"));
        String orderby = request.getParameter("orderby");
        String order = request.getParameter("order");
        int page = Integer.parseInt(request.getParameter("page"));
        List<Post> postList = postService.list(per_page, page);
        List<Post> posts = new ArrayList<>();
        for (int i = 0; i < postList.size(); i++) {
            Post post = postList.get(i);
            JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
            post.setCopyright_state("");
            post.setTags(JSON.parseArray(post.getTagsJson()));
            post.setTagsJson("");
            post.setCategories(JSON.parseArray(post.getCategoriesJson()));
            post.setCategoriesJson("");
            post.setTitle(JSON.parseObject(post.getTitleJson()));
            post.setTitleJson("");
            post.setContent(JSON.parseObject(post.getContentJson()));
            post.setContentJson("");
            post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
            post.setExcerptJson("");
            post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
            post.setRelated_postsJson("");
            post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
            post.setAvatarurlsJson("");
            post.setGuid(JSON.parseObject(post.getGuidJson()));
            post.setGuidJson("");
            post.setPost_all_images(jsonArray);
            posts.add(post);
        }
        return posts;

    }


    @GetMapping(value = "/posts")
    List<Post> getAllPostss(HttpServletRequest request) {
        String sticky = request.getParameter("sticky");
        int per_page = Integer.parseInt(request.getParameter("per_page"));
        String orderby = request.getParameter("orderby");
        String order = request.getParameter("order");
        int page = Integer.parseInt(request.getParameter("page"));
        List<Post> posts = new ArrayList<>();
        int locals = Integer.parseInt(request.getParameter("locals"));
        if(locals == 0){
            if (request.getParameter("categories") == null) {
                String search = request.getParameter("search");
                if (search == null) {
                    return null;
                } else {
                    List<Post> postList = postService.listsearchresults(per_page, page, search);
                    for (int i = 0; i < postList.size(); i++) {
                        Post post = postList.get(i);
                        JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
                        post.setCopyright_state("");
                        post.setTags(JSON.parseArray(post.getTagsJson()));
                        post.setTagsJson("");
                        post.setCategories(JSON.parseArray(post.getCategoriesJson()));
                        post.setCategoriesJson("");
                        post.setTitle(JSON.parseObject(post.getTitleJson()));
                        post.setTitleJson("");
                        post.setContent(JSON.parseObject(post.getContentJson()));
                        post.setContentJson("");
                        post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
                        post.setExcerptJson("");
                        post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
                        post.setRelated_postsJson("");
                        post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
                        post.setAvatarurlsJson("");
                        post.setGuid(JSON.parseObject(post.getGuidJson()));
                        post.setGuidJson("");
                        post.setPost_all_images(jsonArray);
                        posts.add(post);
                    }
                    return posts;
                }
            } else {
                int categories = Integer.parseInt(request.getParameter("categories"));
                List<Post> postList = postService.listbycategoriesid(per_page, page, categories);
                for (int i = 0; i < postList.size(); i++) {
                    Post post = postList.get(i);
                    JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
                    post.setCopyright_state("");
                    post.setTags(JSON.parseArray(post.getTagsJson()));
                    post.setTagsJson("");
                    post.setCategories(JSON.parseArray(post.getCategoriesJson()));
                    post.setCategoriesJson("");
                    post.setTitle(JSON.parseObject(post.getTitleJson()));
                    post.setTitleJson("");
                    post.setContent(JSON.parseObject(post.getContentJson()));
                    post.setContentJson("");
                    post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
                    post.setExcerptJson("");
                    post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
                    post.setRelated_postsJson("");
                    post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
                    post.setAvatarurlsJson("");
                    post.setGuid(JSON.parseObject(post.getGuidJson()));
                    post.setGuidJson("");
                    post.setPost_all_images(jsonArray);
                    posts.add(post);
                }
                return posts;

            }
        }else {
            if (request.getParameter("categories") == null) {
                String search = request.getParameter("search");
                if (search == null) {
                    return null;
                } else {
                    List<Post> postList = postService.listsearchresults(per_page, page, search);
                    for (int i = 0; i < postList.size(); i++) {
                        Post post = postList.get(i);
                        JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
                        post.setCopyright_state("");
                        post.setTags(JSON.parseArray(post.getTagsJson()));
                        post.setTagsJson("");
                        post.setCategories(JSON.parseArray(post.getCategoriesJson()));
                        post.setCategoriesJson("");
                        post.setTitle(JSON.parseObject(post.getTitleJson()));
                        post.setTitleJson("");
                        post.setContent(JSON.parseObject(post.getContentJson()));
                        post.setContentJson("");
                        post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
                        post.setExcerptJson("");
                        post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
                        post.setRelated_postsJson("");
                        post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
                        post.setAvatarurlsJson("");
                        post.setGuid(JSON.parseObject(post.getGuidJson()));
                        post.setGuidJson("");
                        post.setPost_all_images(jsonArray);
                        posts.add(post);
                    }
                    return posts;
                }
            } else {
                int categories = Integer.parseInt(request.getParameter("categories"));
                List<Post> postList = postService.listbycategoriesidlocal(per_page, page, categories);
                for (int i = 0; i < postList.size(); i++) {
                    Post post = postList.get(i);
                    JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
                    post.setCopyright_state("");
                    post.setTags(JSON.parseArray(post.getTagsJson()));
                    post.setTagsJson("");
                    post.setCategories(JSON.parseArray(post.getCategoriesJson()));
                    post.setCategoriesJson("");
                    post.setTitle(JSON.parseObject(post.getTitleJson()));
                    post.setTitleJson("");
                    post.setContent(JSON.parseObject(post.getContentJson()));
                    post.setContentJson("");
                    post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
                    post.setExcerptJson("");
                    post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
                    post.setRelated_postsJson("");
                    post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
                    post.setAvatarurlsJson("");
                    post.setGuid(JSON.parseObject(post.getGuidJson()));
                    post.setGuidJson("");
                    post.setPost_all_images(jsonArray);
                    posts.add(post);
                }
                return posts;

            }
        }



    }

    @PostMapping(value = "/post/add")
    JSONObject addpost(HttpServletRequest request,@RequestBody JSONObject jsonObject) {
        String openid = request.getHeader("X-WX-OPENID");
        //String openid = "oiRnJ5W-SUy6aFEFgR_xNSchKJYw";
        String postTitle = jsonObject.getString("postTitle");
        String postContent = jsonObject.getString("postContent");
        JSONObject jsons = new JSONObject();
        int postadd = postService.addpost(postTitle,postContent,openid);
        if (postadd>0){
            jsons.put("success", true);
            jsons.put("message", "状态发布成功");
            return jsons;
        }else {
            jsons.put("success", false);
            jsons.put("message", "状态发布不成功");
            return  jsons;
        }
    }


    @GetMapping(value = "/post/hotpostthisyear")
    List<Post> hotpostthisyear(HttpServletRequest request) {

        int page = Integer.parseInt(request.getParameter("page"));
        List<Post> postList = postService.list(10, 1);
        List<Post> posts = new ArrayList<>();
        for (int i = 0; i < postList.size(); i++) {
            Post post = postList.get(i);
            JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
            post.setCopyright_state("");
            post.setTags(JSON.parseArray(post.getTagsJson()));
            post.setTagsJson("");
            post.setCategories(JSON.parseArray(post.getCategoriesJson()));
            post.setCategoriesJson("");
            post.setTitle(JSON.parseObject(post.getTitleJson()));
            post.setTitleJson("");
            post.setContent(JSON.parseObject(post.getContentJson()));
            post.setContentJson("");
            post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
            post.setExcerptJson("");
            post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
            post.setRelated_postsJson("");
            post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
            post.setAvatarurlsJson("");
            post.setGuid(JSON.parseObject(post.getGuidJson()));
            post.setGuidJson("");
            post.setPost_all_images(jsonArray);
            posts.add(post);
        }
        return posts;
    }

    @GetMapping(value = "/post/pageviewsthisyear")
    List<Post> pageviewsthisyear(HttpServletRequest request) {

        List<Post> postList = postService.list(10, 1);
        List<Post> posts = new ArrayList<>();
        for (int i = 0; i < postList.size(); i++) {
            Post post = postList.get(i);
            JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
            post.setCopyright_state("");
            post.setTags(JSON.parseArray(post.getTagsJson()));
            post.setTagsJson("");
            post.setCategories(JSON.parseArray(post.getCategoriesJson()));
            post.setCategoriesJson("");
            post.setTitle(JSON.parseObject(post.getTitleJson()));
            post.setTitleJson("");
            post.setContent(JSON.parseObject(post.getContentJson()));
            post.setContentJson("");
            post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
            post.setExcerptJson("");
            post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
            post.setRelated_postsJson("");
            post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
            post.setAvatarurlsJson("");
            post.setGuid(JSON.parseObject(post.getGuidJson()));
            post.setGuidJson("");
            post.setPost_all_images(jsonArray);
            posts.add(post);
        }
        return posts;
    }

    @GetMapping(value = "/post/likethisyear")
    List<Post> likethisyear(HttpServletRequest request) {

        List<Post> postList = postService.list(10, 1);
        List<Post> posts = new ArrayList<>();
        for (int i = 0; i < postList.size(); i++) {
            Post post = postList.get(i);
            JSONArray jsonArray = JSON.parseArray(post.getCopyright_state());
            post.setCopyright_state("");
            post.setTags(JSON.parseArray(post.getTagsJson()));
            post.setTagsJson("");
            post.setCategories(JSON.parseArray(post.getCategoriesJson()));
            post.setCategoriesJson("");
            post.setTitle(JSON.parseObject(post.getTitleJson()));
            post.setTitleJson("");
            post.setContent(JSON.parseObject(post.getContentJson()));
            post.setContentJson("");
            post.setExcerpt(JSON.parseObject(post.getExcerptJson()));
            post.setExcerptJson("");
            post.setRelated_posts(JSON.parseArray(post.getRelated_postsJson()));
            post.setRelated_postsJson("");
            post.setAvatarurls(JSON.parseArray(post.getAvatarurlsJson()));
            post.setAvatarurlsJson("");
            post.setGuid(JSON.parseObject(post.getGuidJson()));
            post.setGuidJson("");
            post.setPost_all_images(jsonArray);
            posts.add(post);
        }
        return posts;
    }


    @GetMapping(value = "/maryposts")
    public List<MaryPost> getMaryPostsByOpenid(HttpServletRequest request) {
        String openid = request.getHeader("X-WX-OPENID");
        // String openid = "oiRnJ5W-SUy6aFEFgR_xNSchKJYw";
        int per_page = Integer.parseInt(request.getParameter("per_page"));
        int page = Integer.parseInt(request.getParameter("page"));
        List<MaryPost> maryPostslist = postService.getMaryPostsByOpenid(per_page, page, openid);
        for (int i = 0; i < maryPostslist.size(); i++) {
            MaryPost maryPost = maryPostslist.get(i);
            maryPost.setTitle(JSON.parseObject(maryPost.getTitleJson()));
            maryPost.setTitleJson("");
        }
        return maryPostslist;
    }


    @GetMapping(value = "/options")
    JSONObject getOptions(HttpServletRequest request) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("enable_index_interstitial_ad", "0");
        jsonObject.put("enable_detail_interstitial_ad", "0");
        jsonObject.put("enable_topic_interstitial_ad", "1");
        jsonObject.put("enable_list_interstitial_ad", "1");
        jsonObject.put("enable_hot_interstitial_ad", "1");
        jsonObject.put("enable_live_interstitial_ad", "1");
        jsonObject.put("wf_enable_comment_option", "0");
        jsonObject.put("interstitialAdId", "adunit-65a32c7cfa95eb69");
        jsonObject.put("wf_enterprise_minapp", "1");
        return jsonObject;
    }

    @GetMapping(value = "/options/enableComment")
    JSONObject getOptionsEnableComment(HttpServletRequest request) {
        String openid = request.getHeader("X-WX-OPENID");
        //String openid = "oiRnJ5W-SUy6aFEFgR_xNSchKJYw";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("code", "success");
        jsonObject.put("message", "获取是否开启评论成功");
        jsonObject.put("status", "200");
        Option enableComment = optionMapper.getEnableComment(openid);
        if (enableComment == null) {
            optionMapper.insert(openid);
            jsonObject.put("enableComment", "0");
            jsonObject.put("enableMary", "0");
        } else {
            jsonObject.put("enableComment", enableComment.getEnableComment());
            jsonObject.put("enableMary", enableComment.getEnableMary());
        }
        return jsonObject;
    }


    @GetMapping(value = "/options/enableChannels")
    JSONObject getOptionsenableChannels(HttpServletRequest request) {
        //String openid = request.getHeader("X-WX-OPENID");
        String openid = "oiRnJ5W-SUy6aFEFgR_xNSchKJYw";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("code", "success");
        jsonObject.put("message", "获取是否开启视频号成功");
        jsonObject.put("status", "200");
        String enableComment = enablechannelsMapper.getEnableComment();
        jsonObject.put("enableChannels", enableComment);
        return jsonObject;
    }


    @GetMapping(value = "/options/homeconfig")
    JSONObject getOptionsHomeconfig(HttpServletRequest request) {
        String openid = request.getHeader("X-WX-OPENID");
        List<Nav> swipe_nav = navMapper.getSwipeNavByopenid(openid);
        List<Nav> selected_nav = navMapper.getSelectNavByopenid(openid);
        Nav nav = new Nav();
        int addressid = navMapper.getAddressidByopenid(openid);
        String path = "/pages/list/list?categoryID=";
        path = path + addressid;
        nav.setType("apppage");
        nav.setJumptype("redirect");
        nav.setAppid("");
        nav.setImage("https://www.watch-life.net/images/2019/11/minapper.jpg");
        nav.setPath(path);
        nav.setTitle("本地");
        nav.setEnable("yes");
        selected_nav.add(nav);
        Nav nav1 = new Nav();
        String path1 = "/pages/list/list?categoryID=";
        path1 = path1 + addressid+"&localS=1";
        nav1.setType("apppage");
        nav1.setJumptype("redirect");
        nav1.setAppid("");
        nav1.setImage("https://www.watch-life.net/images/2019/11/minapper.jpg");
        nav1.setPath(path1);
        nav1.setTitle("附近");
        nav1.setEnable("yes");
        selected_nav.add(nav1);
        JSONObject jsonObject = new JSONObject();
        String downloadfileDomain = "thirdwx.qlogo.cn,www.watch-life.net,wx.qlogo.cn,blog.minapper.com,www.minapper.com,shops.minapper.com,7072-prod-8gshxgml6ff3aa4c-1302880251.tcb.qcloud.la,upload.lichongbing.com,image.lichongbing.com";
        String businessDomain = "blog.minapper.com,plus.minapper.com,blog.minapper.com,www.minapper.com,www.watch-life.ne";
        String zanImageurl = "https://www.watch-life.net/images/2021/02/微信图片_20210201182058.jpg";
        String logoImageurl = "https://www.watch-life.net/images/2021/01/watch-life.png";
        jsonObject.put("downloadfileDomain", downloadfileDomain);
        jsonObject.put("businessDomain", businessDomain);
        jsonObject.put("zanImageurl", zanImageurl);
        jsonObject.put("logoImageurl", logoImageurl);
        JSONObject expand = new JSONObject();
        expand.put("swipe_nav", swipe_nav);
        expand.put("selected_nav", selected_nav);
        jsonObject.put("expand", expand);
        return jsonObject;
    }


    @GetMapping(value = "/posts/{postid}")
    JSONObject getPost(@PathVariable int postid) {
        Post post = postService.getPostdetals(postid);
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id", post.getId());
        jsonObject.put("date", post.getDate());
        jsonObject.put("date_gmt", post.getDate_gmt());
        jsonObject.put("guid", JSON.parseObject(post.getGuidJson()));
        jsonObject.put("modified", post.getModified());
        jsonObject.put("modified_gmt", post.getModified_gmt());
        jsonObject.put("slug", post.getSlug());
        jsonObject.put("status", post.getStatus());
        jsonObject.put("type", post.getType());
        jsonObject.put("link", post.getLink());
        jsonObject.put("title", JSON.parseObject(post.getTitleJson()));
        jsonObject.put("content", JSON.parseObject(post.getContentJson()));
        jsonObject.put("excerpt", JSON.parseObject(post.getExcerptJson()));
        jsonObject.put("author", post.getAuthor());
        jsonObject.put("featured_media", post.getFeatured_media());
        jsonObject.put("comment_status", post.getComment_status());
        jsonObject.put("ping_status", post.getPing_status());
        String sticky = post.getSticky();
        if (sticky.equals("false")) {
            jsonObject.put("sticky", false);
        } else {
            jsonObject.put("sticky", true);
        }
        jsonObject.put("template", post.getTemplate());
        jsonObject.put("format", post.getFormat());
        JSONArray meta = new JSONArray();
        jsonObject.put("meta", meta);
        jsonObject.put("categories", JSON.parseArray(post.getCategoriesJson()));
        jsonObject.put("tags", JSON.parseArray(post.getTagsJson()));
        jsonObject.put("post_thumbnail_image", post.getPost_thumbnail_image());
        jsonObject.put("content_first_image", post.getContent_first_image());
        jsonObject.put("post_medium_image_300", post.getPost_medium_image_300());
        jsonObject.put("post_thumbnail_image_624", post.getPost_thumbnail_image_624());
        jsonObject.put("post_frist_image", post.getPost_frist_image());
        jsonObject.put("post_medium_image", post.getPost_medium_image());
        jsonObject.put("post_large_image", post.getPost_all_images());
        jsonObject.put("post_full_image", post.getPost_full_image());
        jsonObject.put("post_all_images", JSON.parseArray(post.getCopyright_state()));
        jsonObject.put("videoAdId", post.getVideoAdId());
        jsonObject.put("listAd", post.getListAd());
        jsonObject.put("listAdId", post.getListAdId());
        jsonObject.put("listAdEvery", post.getListAdEvery());
        jsonObject.put("total_comments", post.getTotal_comments());
        jsonObject.put("category_name", post.getCategory_name());
        jsonObject.put("post_date", post.getPost_date());
        jsonObject.put("like_count", post.getLike_count());
        jsonObject.put("praiseWord", post.getPraiseWord());
        jsonObject.put("copyright_state", "");
        jsonObject.put("excitationAd", post.getExcitationAd());
        jsonObject.put("rewardedVideoAdId", post.getRewardedVideoAdId());
        jsonObject.put("detailAdId", post.getDetailAdId());
        jsonObject.put("detailAd", post.getDetailAd());
        jsonObject.put("enterpriseMinapp", post.getEnterpriseMinapp());
        JSONArray audios = new JSONArray();
        jsonObject.put("audios", audios);
        jsonObject.put("postImageUrl", post.getPostImageUrl());
        jsonObject.put("avatarurls", JSON.parseArray(post.getAvatarurlsJson()));
        jsonObject.put("related_posts", JSON.parseArray(post.getRelated_postsJson()));
        jsonObject.put("pageviews", post.getPageviews());
        jsonObject.put("next_post_id", post.getNext_post_id());
        jsonObject.put("next_post_title", post.getNext_post_title());
        jsonObject.put("previous_post_id", post.getPrevious_post_id());
        jsonObject.put("previous_post_title", post.getPrevious_post_title());
        JSONArray aioseo_notices = new JSONArray();
        jsonObject.put("aioseo_notices", aioseo_notices);
        return jsonObject;
    }

    /**
     * 点赞功能完成
     *
     * @param json
     * @param requests
     * @return
     */
    @PostMapping(value = "/post/islike")
    JSONObject islike(@RequestBody JSONObject json, HttpServletRequest requests) {
        String openid = requests.getHeader("X-WX-OPENID");
        //String openid = "oiRnJ5W-SUy6aFEFgR_xNSchKJYw";
        int postid = Integer.parseInt(json.getString("postid"));
        int islike = userlikeMapper.islike(openid, postid);
        JSONObject jsonObject = new JSONObject();
        if (islike == 1) {
            jsonObject.put("status", 200);
        } else {
            jsonObject.put("status", 201);
        }

        return jsonObject;
    }

    /**
     * 点赞功能
     *
     * @param json
     * @param requests
     * @return
     */
    @PostMapping(value = "/post/like")
    JSONObject like(@RequestBody JSONObject json, HttpServletRequest requests) {
        String openid = requests.getHeader("X-WX-OPENID");
        //String openid = "oiRnJ5W-SUy6aFEFgR_xNSchKJYw";
        Integer postid = Integer.valueOf(json.getString("postid"));
        Userlike userlike = userlikeMapper.isliked(openid, postid);
        JSONObject jsonObject = new JSONObject();
        if (userlike == null) {
            userlikeMapper.like(openid, postid);
            String avatarUrl = userService.getAvatarUrl(openid);
            //更新文章点赞数量
            int likeCount = postService.updatelikeCont(postid);
            //更新点赞用户头像
            int addavatarUrl = postService.updateAvatarUrl(avatarUrl, postid);
            if (addavatarUrl > 0 && likeCount > 0) {
                jsonObject.put("status", 200);
            }
        } else {
            int islike = userlikeMapper.islike(openid, postid);
            if (islike == 1) {
                jsonObject.put("status", 501);
            }
        }
        return jsonObject;
    }


}
